package cn.wolfcode.service;

import cn.wolfcode.domain.UserWallet;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface IUserWalletService extends IService<UserWallet> {

    UserWallet byUserId(Long userId);

    boolean pay(Long userId, BigDecimal payMoney, String info);

    boolean refund(Long detailId, String refundInfo);
}
